High Contrast: remove an adwaita leftover
authorLapo Calamandrei <calamandrei@gmail.com>
Thu, 17 Mar 2016 10:36:37 +0000 (11:36 +0100)
committerJakub Steiner <jimmac@gmail.com>
Thu, 17 Mar 2016 11:54:10 +0000 (12:54 +0100)
... a missing mixin which makes no sense in HC actually.

gtk/theme/HighContrast/_common.scss
gtk/theme/HighContrast/gtk-contained-inverse.css
gtk/theme/HighContrast/gtk-contained.css

index 8ebf813f50cbc46597fabfff33bc9bf586e78dbc..1b5d59aa4032f3395e7919751c07c6395d234f4d 100644 (file)
@@ -685,32 +685,19 @@ button {
 
 %needs_attention {
   animation: needs_attention 150ms ease-in;
-  $_dot_shadow: _text_shadow_color();
-  $_dot_shadow_r: if($variant=='light',0.5,0.45);
   background-image: -gtk-gradient(radial,
                                   center center, 0,
                                   center center, 0.5,
                                   to($_dot_color),
-                                  to(transparent)),
-                    -gtk-gradient(radial,
-                                  center center, 0,
-                                  center center, $_dot_shadow_r,
-                                  to($_dot_shadow),
                                   to(transparent));
-  background-size: 6px 6px, 6px 6px;
+  background-size: 6px 6px;
   background-repeat: no-repeat;
 
-  @if $variant == 'light' { background-position: right 3px, right 4px; }
-
-  @else { background-position: right 3px, right 2px; }
-
-  &:backdrop { background-size: 6px 6px, 0 0;}
+  background-position: right 3px;
 
-  &:dir(rtl) {
-    @if $variant == 'light' { background-position: left 3px, left 4px; }
+  &:backdrop { background-size: 6px 6px;}
 
-    @else { background-position: left 3px, left 2px; }
-  }
+  &:dir(rtl) { background-position: left 3px; }
 }
 
 
@@ -862,8 +849,6 @@ button.color {
     &, overlay { border-radius: 0; }
 
     @if $variant == 'light' {
-      box-shadow: 0 1px _text_shadow_color();
-
       &:disabled,
       &:backdrop { box-shadow: none; }
     }
index 88008d91533325f5900b85c2ce4cd3145f8f9987..65a7a8b999e3c7da79239612f9f7d0d0f0dc545a 100644 (file)
@@ -832,16 +832,16 @@ button.destructive-action {
 .stack-switcher > button.needs-attention > label,
 .stack-switcher > button.needs-attention > image, stacksidebar row.needs-attention > label {
   animation: needs_attention 150ms ease-in;
-  background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(#aaa), to(transparent)), -gtk-gradient(radial, center center, 0, center center, 0.45, to(_text_shadow_color()), to(transparent));
-  background-size: 6px 6px, 6px 6px;
+  background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(#aaa), to(transparent));
+  background-size: 6px 6px;
   background-repeat: no-repeat;
-  background-position: right 3px, right 2px; }
+  background-position: right 3px; }
   .stack-switcher > button.needs-attention > label:backdrop,
   .stack-switcher > button.needs-attention > image:backdrop, stacksidebar row.needs-attention > label:backdrop {
-    background-size: 6px 6px, 0 0; }
+    background-size: 6px 6px; }
   .stack-switcher > button.needs-attention > label:dir(rtl),
   .stack-switcher > button.needs-attention > image:dir(rtl), stacksidebar row.needs-attention > label:dir(rtl) {
-    background-position: left 3px, left 2px; }
+    background-position: left 3px; }
 
 .inline-toolbar toolbutton > button {
   border-width: 2px;
index f5b3f012be2b51555e731adf0948f876d25c56cf..bf534614ddb1d8e753c00f9f44e5e68c3d5e6596 100644 (file)
@@ -834,16 +834,16 @@ button.destructive-action {
 .stack-switcher > button.needs-attention > label,
 .stack-switcher > button.needs-attention > image, stacksidebar row.needs-attention > label {
   animation: needs_attention 150ms ease-in;
-  background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(#000), to(transparent)), -gtk-gradient(radial, center center, 0, center center, 0.5, to(_text_shadow_color()), to(transparent));
-  background-size: 6px 6px, 6px 6px;
+  background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(#000), to(transparent));
+  background-size: 6px 6px;
   background-repeat: no-repeat;
-  background-position: right 3px, right 4px; }
+  background-position: right 3px; }
   .stack-switcher > button.needs-attention > label:backdrop,
   .stack-switcher > button.needs-attention > image:backdrop, stacksidebar row.needs-attention > label:backdrop {
-    background-size: 6px 6px, 0 0; }
+    background-size: 6px 6px; }
   .stack-switcher > button.needs-attention > label:dir(rtl),
   .stack-switcher > button.needs-attention > image:dir(rtl), stacksidebar row.needs-attention > label:dir(rtl) {
-    background-position: left 3px, left 4px; }
+    background-position: left 3px; }
 
 .inline-toolbar toolbutton > button {
   border-width: 2px;
@@ -1034,12 +1034,10 @@ popover.background radiobutton arrow {
 
 button.color {
   padding: 4px; }
-  button.color colorswatch:only-child {
-    box-shadow: 0 1px _text_shadow_color(); }
-    button.color colorswatch:only-child, button.color colorswatch:only-child overlay {
-      border-radius: 0; }
-    button.color colorswatch:only-child:disabled, button.color colorswatch:only-child:backdrop {
-      box-shadow: none; }
+  button.color colorswatch:only-child, button.color colorswatch:only-child overlay {
+    border-radius: 0; }
+  button.color colorswatch:only-child:disabled, button.color colorswatch:only-child:backdrop {
+    box-shadow: none; }
 
 /*********
  * Links *